package com.itheima.mythread.Demo11;

public class Desk {
    private int hamburgerCount;
    private boolean flag = false;

    public void put(int hamburgerCount) {
        this.hamburgerCount = hamburgerCount;
        System.out.println("厨师正在放第" + hamburgerCount + "个汉堡包");
    }

    public void take(){
        System.out.println("吃货从桌子上取走了第" + hamburgerCount + "个汉堡包");
    }

    public int getHamburgerCount() {
        return hamburgerCount;
    }

    public void setHamburgerCount(int hamburgerCount) {
        this.hamburgerCount = hamburgerCount;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
}
